package com.xjj.cms.service;


import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xjj.cms.dao.CompanyDao;
import com.xjj.cms.entity.Company;
import com.xjj.core.modules.dao.template.DbUtilsTemplate;
import com.xjj.core.modules.orm.Finder;
import com.xjj.core.modules.orm.Page;

public interface CompanyService{
	
	
	public void saveCompany(Company entity);
	
	public void updateCompany(Company entity);

	public void deleteCompany(Long id);
	
	public List<Company> getAllCompanyList();

	//要想上百万数据库，就必须分两步走，先获取id 值，再根据id来获取分页的数据，再进行封装
	//1、获取数据库总数、获取id,2、使用in 获取所需要的
	//下一步要加条件进行查询和测试
	public Page<Company> getAllCompanyByHql(Map map, int pageNo, int pageSize);

}
